
class EntityFactory {
  static T generateOBJ<T>(json) {
    if (json == null) {
      return null;
    } 
    // else if (T.toString() == "LoginEntity") {
    //   return LoginEntity.fromJson(json) as T;
    // } 
    else {
      return json as T;
    }
  }
}
